<template>
<div>Child</div>
</template>

<script>
export default {
  name: "Child",
  props:['xx'],
  mounted() {
    //$attrs 是一个对象,收集父组件传递的所有属性,除了props接收过来的属性及class和style
    console.log(this.$attrs,this.$listeners)
  }
}
</script>

<style lang="less" scoped>

</style>